package com.jiashihui.schema_lgorithm.schema.command;

/**
 * @author jiashihui
 * @describe: 命令模式测试类
 * @date 2019/03/13
 *
 * 达到命令的发出者和执行者之间解耦，实现请求和执行分开。
 */
public class CommandTest {
    public static void main(String[] args) {
        Receiver receiver = new Receiver();
        Command command = new CommandImpl(receiver);
        Invoker invoker = new Invoker(command);
        invoker.action();
    }
}
